package com.encapi.framework.wrapper;

import com.encapi.framework.exception.EncryptBodyException;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;

/**
 * 响应结果加密包装转换器
 * @author xzbcode
 */
public interface ResponseDataWrapper<T> {

    T wrap(T originData,
           MethodParameter method,
           MediaType mediaType,
           ServerHttpRequest request,
           ServerHttpResponse response) throws Exception;

}
